Prevent negative len in ggv_bin_read_bytes.
authorRalf Horstmann <ralf+github@ackstorm.de>
Mon, 6 Jan 2020 20:55:10 +0000 (21:55 +0100)
committerRalf Horstmann <ralf+github@ackstorm.de>
Sat, 11 Jan 2020 19:14:42 +0000 (20:14 +0100)
commitcd1f89138a2f34cc4745b17f1f0bad470e55a497
tree135ce664ffc07b707bef2b24aa72fc845deb4e6d
parentdc5e311654ee0f6b57a29a694f920e8a7b46d631
Prevent negative len in ggv_bin_read_bytes.

Both QByteArray::resize and QIODevice::read handle negative
len values gracefully, but there is no error status returned and
parsing fails later at and unrelated location. So better fail
early instead.
ggv_bin.cc